import java.util.Arrays;

public class main {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,9,10};
        int i = 0;
       /* for(i=0;i<arr.length;i++){
            System.out.print(arr[i]+" ");
        }*/
        int[] arr2 = new int[10] ;
        for(i=arr.length-1;i>=0;i--){
            arr2[arr.length - 1 - i]=i;
        }
        /*for(i=0;i<arr2.length;i++){
            System.out.print(arr2[i]+" ");
        }*/
       /* for(int x : arr2){
            System.out.print(x+" ");
        }*/
        //返回 把数组转变为字符串然后返回
        String ret = Arrays.toString(arr2);
        System.out.println(ret);
    }
}
